package com.xingxuecn.demos.service.impl;

import com.xingxuecn.demos.service.UserService;

import org.apache.commons.lang3.builder.MultilineRecursiveToStringStyle;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * @author Kris at 2018/9/26 9:47
 */
public class RoleService {
    UserService userService;
    MenuService menuService;

    public RoleService() {
    }

    public RoleService(UserServiceImpl userService, MenuService menuService) {
        this.userService = userService;
        this.menuService = menuService;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, new MultilineRecursiveToStringStyle())
                .append("userService", userService)
                .append("menuService", menuService)
                .toString();
    }

    public void setUserService(UserServiceImpl userService) {
        this.userService = userService;
    }

    public void setMenuService(MenuService menuService) {
        this.menuService = menuService;
    }
}
